import axios from 'axios';  
  

const baseURL = '/api' 

const PhotoInstance = axios.create({  
  baseURL: baseURL,  
  timeout: 5000 // 可以添加更多配置  
});  

  
// 添加请求函数  

export function postPhotoGallery(url, params) {  
  
  return PhotoInstance.post(url, params);  
}  
export function postGallery(url, params) { 
  console.log(url);
   console.log(params);
   
  return PhotoInstance.post(url, params);  
} 

export default {
PhotoInstance,
}